<?php
use think\Db;
// 获取安装商名字
function getazsName($server_code){
    if(!$server_code){
        return  '';
      }
    $name=Db::table('cmf_rl_et_azs')->where('server_code',$server_code)->value('server_name');
    return $name;
}
//获取安装队名字
function getazdName($engineer_code){
    if(!$engineer_code){
      return  '';
    }
    $name=Db::table('cmf_rl_et_azd')->where('engineer_code',$engineer_code)->value('engineer_name');
    if(!$name){
       return '';
    }
    return $name;
}
//获取分公司名字
function getfgsName($bm_code){
    if(!$bm_code){
        return  '';
      }
    $name=Db::table('cmf_rl_company')->where('orgdept',$bm_code)->value('orgname');
    if(!$name){
      return  '';
    }
    return $name;
}

//获取人员名字
function getgcsName($mobilphone){
    if(!$mobilphone){
        return  '';
    }
    $name=Db::table('cmf_rl_zsms_user_query')->where('mobilphone',$mobilphone)->value('user_name');
    if(!$name){
      return '';
   }
    return $name;
}